package com.kingdee.eas.custom.chaifenorg.app;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
import com.kingdee.bos.metadata.MetaDataPK;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.util.BOSObjectType;

public abstract class AbstractChaiFenFacadeControllerBean extends AbstractBizControllerBean
  implements ChaiFenFacadeController
{
  protected BOSObjectType getBOSType()
  {
    return new BOSObjectType("E8811E9B");
  }

  public void autoChaiFenData(Context ctx) throws BOSException
  {
    try {
      ServiceContext svcCtx = createServiceContext(new MetaDataPK("908c816b-cc7b-4da0-884c-effad28b343f"), new Object[] { ctx });
      invokeServiceBefore(svcCtx);
      if (!svcCtx.invokeBreak()) {
        _autoChaiFenData(ctx);
      }
      invokeServiceAfter(svcCtx);
    } catch (BOSException ex) {
      setRollbackOnly();
      throw ex;
    } finally {
      super.cleanUpServiceState();
    }
  }

  protected void _autoChaiFenData(Context ctx)
    throws BOSException
  {
  }
}